#pragma once
#include "agentstate.h"
#include "Vector2.h"
#include <map>
#include <string>
using namespace std;

class DefendingState :
	public AgentState
{
private:
	KalmanTank* GetAvailableTankInRange(Agent* agent);
	Vector2 pos;
	bool has_pos;
	static bool initialized;
	static vector<Vector2> defense_positions;
	static map<int, int> assigned_positions;
	void init();
public:
	DefendingState(void);
	~DefendingState(void);
	Command GetCommand(Agent* agent);
	int iterationsStuck;
	Vector2 previousPos;
};

